import Cookies from "js-cookie";

const TokenKey = "Admin-Token";
const CoinKey = "Coin-Key";

export function getToken() {
  return Cookies.get(TokenKey);
}

export function getCoinType() {
  return Cookies.get(CoinKey);
}

export function setCoinType(coin) {
  return Cookies.set(CoinKey, coin);
}
export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  Cookies.remove(CoinKey);
  return Cookies.remove(TokenKey);
}
